package com.gzist.elderlyserviceplatform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.InfoNewsQueryByCategoryDTO;
import com.gzist.elderlyserviceplatform.entity.dto.InfoNewsUpdateDTO;
import com.gzist.elderlyserviceplatform.entity.dto.InfoNewsPageDTO;
import com.gzist.elderlyserviceplatform.entity.po.InfoNews;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.elderlyserviceplatform.entity.vo.InfoNewsQueryByCategoryVO;
import com.gzist.elderlyserviceplatform.entity.vo.InfoNewsQueryByLatestOrHotVO;
import com.gzist.elderlyserviceplatform.entity.vo.InfoNewsVo;

import java.util.List;

/**
 * 资讯信息表 服务类
 */
public interface InfoNewsService extends IService<InfoNews> {

    boolean update(InfoNewsUpdateDTO infoNewsUpdateDTO);

    void  c_delete(String categoryId);

    Page<InfoNewsVo> queryPage(InfoNewsPageDTO infoNewsPageDTO);

    List<InfoNewsQueryByLatestOrHotVO> listByLatestOrHot(String id);

    Page<InfoNewsQueryByCategoryVO> queryPageByCategory(InfoNewsQueryByCategoryDTO dto);

    InfoNews getNewsDetail(String newsId);
}
